<?php 

use frontend\assets\AppAsset;


use yii\helpers\Html;

use yii\widgets\ActiveForm;

AppAsset::register($this);

 ?>
  <?php $this->beginPage() ?>
      <?php $this->head() ?>
    <?php $this->beginBody() ?>


<div class="container">
      <div class="section-top-content flex items-center">
        <h1>添加职位</h1>
        <h1><a href="?r=company/work_list">所有职位</a></h1>
        <?php $form = ActiveForm::begin(['action' => '?r=company/work_add' , 'method' => 'post']); ?>
      </div> 
       <?php $cookie = \Yii::$app->request->cookies; 
                $cookie_data=unserialize($cookie->getValue('company'));
                
                ?>

                <?= Html::activeHiddenInput($model,'CId',['value'=>$cookie_data['CId']]) ?>
      <div class="jobs-table">
        <div class="table-header">
          <div class="table-cells flex">
            <div class="job-title-cell"><h6>名称</h6></div>
            
            <div class="job-type-cell"><h6>输入/完善</h6></div>
            <div class="job-type-cell"><h6> </h6></div>
            <div class="job-type-cell"><h6> </h6></div>
         
          </div> <!-- end .table-cells -->
          
        </div> <!-- end .table-header -->

        <div class="table-row">
          <div class="table-cells flex no-wrap">
            <div class="cell job-title-cell flex no-column no-wrap">
              <div class="content">
                <h4><a href="#">企业招聘职位的起始时间</a></h4>
                <p class="small">JStart</p>
              </div> <!-- end .content -->
            </div> <!-- end .job-title-cell -->
          
              <?= $form->field($model, 'JStart')->textInput() ?>
          
          </div> <!-- end .table-cells -->
        </div> <!-- end .table-row -->

        <div class="table-row">
          <div class="table-cells flex no-wrap">
            <div class="cell job-title-cell flex no-column no-wrap">
              <div class="content">
                <h4><a href="#">企业招聘职位的结束时间</a></h4>
                <p class="small">JSend</p>
              </div> <!-- end .content -->
            </div> <!-- end .job-title-cell -->
            
              <?= $form->field($model, 'JSend')->textInput() ?>
      
          </div> <!-- end .table-cells -->
        </div> <!-- end .table-row -->

        <div class="table-row">
          <div class="table-cells flex no-wrap">
            <div class="cell job-title-cell flex no-column no-wrap">
              <div class="content">
                <h4><a href="#">职位名称</a></h4>
                <p class="small">JName</p>
              </div> <!-- end .content -->
            </div> <!-- end .job-title-cell -->
          
              <?= $form->field($model, 'JName')->textInput() ?>
        
          </div> <!-- end .table-cells -->
        </div> <!-- end .table-row -->

        <div class="table-row">
          <div class="table-cells flex no-wrap">
            <div class="cell job-title-cell flex no-column no-wrap">
              <div class="content">
                <h4><a href="#">职位薪资</a></h4>
                <p class="small">JSalary</p>
              </div> <!-- end .content -->
            </div> <!-- end .job-title-cell -->
          
              <?= $form->field($model, 'JSalary')->textInput() ?>
          
          </div> <!-- end .table-cells -->
        </div> <!-- end .table-row -->

        <div class="table-row">
          <div class="table-cells flex no-wrap">
            <div class="cell job-title-cell flex no-column no-wrap">
              <div class="content">
                <h4><a href="#">职位招聘人数</a></h4>
                <p class="small">JNum</p>
              </div> <!-- end .content -->
            </div> <!-- end .job-title-cell -->
          
              <?= $form->field($model, 'JNum')->textInput() ?>
          
          </div> <!-- end .table-cells -->
        </div> <!-- end .table-row -->

        <div class="table-row">
          <div class="table-cells flex no-wrap">
            <div class="cell job-title-cell flex no-column no-wrap">
              <div class="content">
                <h4><a href="#">职位招聘基本要求</a></h4>
                <p class="small">JRequ</p>
              </div> <!-- end .content -->
            </div> <!-- end .job-title-cell -->
          
              <?= $form->field($model, 'JRequ')->textInput() ?>
          
          </div> <!-- end .table-cells -->
        </div> <!-- end .table-row -->

        <div class="table-row">
          <div class="table-cells flex no-wrap">
            <div class="cell job-title-cell flex no-column no-wrap">
              <div class="content">
                <h4><a href="#">工作地点</a></h4>
                <p class="small">JAdr</p>
              </div> <!-- end .content -->
            </div> <!-- end .job-title-cell -->
          
              <?= $form->field($model, 'JAdr')->textInput() ?>
        
          </div> <!-- end .table-cells -->
        </div> <!-- end .table-row -->

        
        <div align="center">
         <?= Html::submitButton('提交', ['class' => 'btn btn-primary','style'=>'width:100']) ?>
         </div>
         <?php ActiveForm::end(); ?>
      </div> <!-- end .jobs-table -->
    </div> <!-- end .container -->

  <?php $this->endBody() ?>
  <?php $this->endPage() ?>